import request from '@/utils/request'

// 查询测试答案记录列表
export function listAnswerLog(query) {
  return request({
    url: '/system/answerLog/list',
    method: 'get',
    params: query
  })
}

// 查询测试答案记录详细
export function getAnswerLog(id) {
  return request({
    url: '/system/answerLog/' + id,
    method: 'get'
  })
}

// 新增测试答案记录
export function addAnswerLog(data) {
  return request({
    url: '/system/answerLog',
    method: 'post',
    data: data
  })
}

// 修改测试答案记录
export function updateAnswerLog(data) {
  return request({
    url: '/system/answerLog',
    method: 'put',
    data: data
  })
}

// 删除测试答案记录
export function delAnswerLog(id) {
  return request({
    url: '/system/answerLog/' + id,
    method: 'delete'
  })
}
